<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

	
	
	
	<h:head>
	
	
	</h:head>


<h:body>


    
<p:tabMenu activeIndex="1">  
    <p:menuitem value="MODIFY FLIGHTS" url="http://localhost:8080/TravelDreamWeb/modifyFlight.xhtml" icon="ui-icon-search"/>  
    <p:menuitem value="MODIFY HOTELS" url="http://localhost:8080/TravelDreamWeb/modifyHotel.xhtml" icon="ui-icon-search" />
     <p:menuitem value="MODIFY EXCURSIONS" url="http://localhost:8080/TravelDreamWeb/modifyExcursion.xhtml" icon="ui-icon-search" />    
</p:tabMenu> 

      
   
      
      
 <!-- chiude il forum del tabella iniziale-->
      
      
      
   
       
      
    
      <h:form>
<h5 style="font-size:large;">THESE ARE YOUR PERSONALIZED PACKAGES</h5>
    </h:form>
    


<h:form style="font-size:x-small;">
   <p:dataTable id="dataTable2" var="pers" value="#{personalizePackageBean.persPackList}" widgetVar="perListTable"   
           rowKey="#{pers.idpackage}"
           selection="#{personalizePackageBean.selectedPersonalizedPackage}"
           selectionMode="single">
           >
     
        <p:column id="FLIGHT"    
                headerText="FLIGHT" 
                >  
            <h:outputText value="#{pers.idbasicproduct1}"/>
          
        </p:column> 
   
        <p:column id="HOTEL"    
                headerText="HOTEL" 
                >  
            <h:outputText value="#{pers.idbasicproduct2}"/>
     
        </p:column> 
        
        
         <p:column id="EXCURSION"    
                headerText="EXCURSION" 
                >  
                
            <h:outputText value="#{pers.idbasicproduct3}"/>
     
        </p:column> 
        
         <p:column id="TOTALPRICE"    
                headerText="TOTALPRICE" 
                >  
                
            <h:outputText value="#{pers.totalprice}"/>
     
        </p:column> 
        
       
    </p:dataTable>  
      
      

<h:form>
<h3 style="font-size:large;">SELECT A HOTEL</h3>
    </h:form>

<h:form> <!-- 2 -->



<p:dataTable id="dataTableHotel" var="hotels" value="#{searchHotelBean.hotelsList}" widgetVar="hotelsListTable"   
           emptyMessage="No hotels found with given criteria" filteredValue="#{searchHotelBean.hotelsFiltered}"
           rowKey="#{hotels.idbasicproduct}"
           selection="#{personalizePackageBean.hotelSelected}"
           selectionMode="single" >
           
           
           
            <p:column id="NAMEColumn" filterBy="name"  
                headerText="Name"  filterMatchMode="contains">  
            <h:outputText value="#{hotels.name}" />  
        
        
        </p:column>     
        
           
     
        <p:column id="CITYColumn" filterBy="city"  
                headerText="CITY" filterMatchMode="contains" >   
            <h:outputText value="#{hotels.city}" />  
        </p:column>  
  
       
                
         <p:column id="DATAINColumn" filterBy="datain"  
                headerText="Data In"  filterMatchMode="contains">  
            <h:outputText value="#{hotels.datain}" />  
        </p:column>  
         
        
         <p:column id="DATAOUTColumn" filterBy="dataout"  
                headerText="Data Out" filterMatchMode="contains">  
            <h:outputText value="#{hotels.dataout}" /> 
        </p:column>  
        
        
        
        <p:column id="PRICEColumn" filterBy="price"  
                headerText="Price" filterMatchMode="contains">  
            <h:outputText value="#{hotels.price}" />  
        </p:column>
        
        
        
        
        <p:column id="ROOMNUMBERColumn" filterBy="roomnumber"  
                headerText="Room Number"  filterMatchMode="contains">  
            <h:outputText value="#{hotels.roomnumber}" />  
        </p:column>
        
    </p:dataTable>  
      
<h:form><!-- buttone -->
<h:commandButton value=" click to modify hotels " action="#{personalizePackageBean.changeHotel()}" update="dataTable2" />

</h:form>





</h:form><!-- chiude 2 -->


 


</h:form><!-- chiude seconda tabella iniziale -->






</h:body>
	
	
	
	
</html>

